package com.zhuang.chapter22;

// 编写一个合格的类，改写书上Snake类，Snake 包含姓名，长度、等级等属性，包含喷火和喷火等方法
public class Snake {
	private String name;
	private String length;
	private int level;
	private int age;

	public void fire() {
		System.out.println("fire........");
	}

	public void water() {
		System.out.println("water........");
	}

	public Snake(String name, String length, int level, int age) {
		super();
		this.name = name;
		this.length = length;
		this.level = level;
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLength() {
		return length;
	}

	public void setLength(String length) {
		this.length = length;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

}
